<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/header :: common_header(~{::title},~{::link})">
    <title>试金石云影像平台</title>
    <link rel="stylesheet" th:href="@{/css/login/form-elements.css}">
    <link rel="stylesheet" th:href="@{/css/login/style.css}">
</head>
<body>
<!-- Top content -->
<div class="top-content">
    <div class="inner-bg">
        <div class="container">
            <div class="row">
                <div class="col-sm-8 col-sm-offset-2 text">
                    <h1><strong>试金石云影像平台</strong></h1>
                    <div class="description">
                        <p>精诚所至，金石为开</p>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="form-box">
                    <div class="form-top text-center">
                        <span class="login">从这里开始</span>
                    </div>
                    <div class="form-bottom">
                        <form role="form" action="" method="post" class="login-form">
                            <div class="form-group">
                                <label class="sr-only" for="userName">用户名</label>
                                <input type="text" name="form-username" placeholder="用输入用户名..."
                                       class="form-username form-control" id="userName"
                                       onfocus="clearMsg(this,'#userNameMsg')" onblur="clearMsg(this, '#useNnameMsg')">
                            </div>
                            <p class="login-warn-msg" id="userNameMsg"></p>
                            <div class="form-group">
                                <label class="sr-only" for="password">密码</label>
                                <input type="password" name="form-password" placeholder="请输入密码..."
                                       class="form-password form-control" id="password"
                                       onfocus="clearMsg(this,'#pwdMsg')" onblur="clearMsg(this, '#pwdMsg')">
                            </div>
                            <p class="login-warn-msg" id="pwdMsg"></p>
                            <input type="button" class="btn btn-success login-btn" value="登录" onclick="login()"/>
                        </form>
                        <!-- 提示框 -->
                        <div class="alert alert-danger alert-dismissable" id="loginResult">
                            <button type="button" class="close" data-dismiss="alert"
                                    aria-hidden="true">
                                &times;
                            </button>
                            <p></p>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-sm-6 col-sm-offset-3 social-login">
                    <h3>&copy; &nbsp;touchstone</h3>
                </div>
            </div>
        </div>
    </div>

</div>

<!-- Javascript -->
<script th:src="@{/js/jquery.backstretch.min.js}"></script>
<script th:src="@{/js/login.js}"></script>
</body>

</html>